package com.grad.why.studentsystem.service;

import com.grad.why.studentsystem.domain.Authorityinfos;
import com.grad.why.studentsystem.domain.current.CurrentAuthorityInfo;

import java.util.List;

public interface AuthorityService {
    List<CurrentAuthorityInfo> getAuthorityInfos(int offset, int limit, String search);

    long getAuthorityInfosLength(String search);

    int delAuthorityInfoById(long l);

    Authorityinfos getAuthorityInfoById(long l);

    int checkAuthorityExist(Authorityinfos authorityinfos);

    long getMaxId();

    int insertAuthorityInfoByEtity(Authorityinfos authorityinfos);

    int updateAuthorityByEntity(Authorityinfos authorityinfos);
}
